<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>导入或修改</title>
    <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="/css/input.css">
</head>
<body>
<div class="header">
    <div class="logo">
        <img src="/images/Logo.png">
    </div>
    <div class="title">
        欢迎使用图书管理系统
    </div>
    <div class="nav">
        <a href="/admin">返回管理首页</a>
    </div>
</div>
<div class="content2">
    <form action="/book/{{$book->id}}" method="POST">
        <input type="hidden" name="_method" value="PUT"/>
        @if(count($errors)>0)
            <ul class="errors">
                @foreach ($errors->all() as $error)
                    <li>{{ $error }}</li>
                @endforeach
            </ul>
        @endif
        <div class="input">
            <div class="three">书号：</div>
            <div class="two"><input type="text" name="bookid" value="{{$book->bookid}}"></div>
        </div>
        <div class="input">
            <div class="three">书名：</div>
            <div class="two"><input type="text" name="name" value="{{$book->name}}"></div>
        </div>
        <div class="input">
            <div class="three">作者：</div>
            <div class="two"><input type="text" name="author" value="{{$book->author}}"></div>
        </div>
        <div class="input">
            <div class="three">出版社：</div>
            <div class="four"><input type="text" name="publisher" value="{{$book->publisher}}"></div>
        <div class="input">
            <div class="three">类别：</div>
            <div class="two"><input type="text" name="type" value="{{$book->type}}"></div>
        </div>
        <div class="input">
            <div class="five">
                <input type="submit" value="点击修改">
            </div>
        </div>
    </form>
</div>
<div class="footer">
    &copy; 2017 玉言为光小组版权所有 未经授权 不得转载 杭电ICP备666666号
</div>
</body>
</html>